package com.yvon.maple.service.system.service;

import com.yvon.boot.mybatis.IBaseService;
import com.yvon.maple.service.system.dto.UserRoleDTO;
import com.yvon.maple.service.system.entity.UserRole;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author : Yvon
 * @version : 1.0
 * @since : 2021/3/15
 */
public interface UserRoleService extends IBaseService<UserRole> {


    boolean save(Long userId, List<Long> roleIds);

    List<Long> getUserIdsByRoleIds(List<Long> roleIds);


    boolean removeByUserIds(Collection<Long> userIds);

    List<UserRoleDTO> getByUserId(Long userId);

    Map<Long, List<UserRoleDTO>> getByUserIds(Collection<Long> userIds);
}
